package com.situ.blog.service;

import com.situ.blog.pojo.Blog;
import com.situ.blog.pojo.query.BlogQuery;
import com.situ.blog.util.PageRusult;

import javax.servlet.http.HttpServletRequest;
import java.util.List;

public interface IBlogService {
    PageRusult<Blog> selectByPage(BlogQuery blogQuery);

    void add(Blog blog);

    int deleteById(int id);

    Blog selectById(String id);

    void updateStatus(String id , int status);

    void update(Blog blog);

    void deleteAll(String[] ids);

    List<Blog> selectAll();

    void importExcel(HttpServletRequest req);
}
